/* eslint-disable */
import request from "@/request";

/** createStory POST /api/culture/story/create */
export async function createStoryUsingPost(
  body: API.CultureStory,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/culture/story/create", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteStory POST /api/culture/story/delete */
export async function deleteStoryUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteStoryUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/culture/story/delete", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getStoryById GET /api/culture/story/get */
export async function getStoryByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStoryByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseCultureStory_>("/api/culture/story/get", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listStoriesByPage GET /api/culture/story/list/page */
export async function listStoriesByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listStoriesByPageUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageCultureStory_>(
    "/api/culture/story/list/page",
    {
      method: "GET",
      params: {
        // current has a default value: 1
        current: "1",
        // size has a default value: 10
        size: "10",
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** addParagraph POST /api/culture/story/paragraph/add */
export async function addParagraphUsingPost(
  body: API.CultureStoryParagraph,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/culture/story/paragraph/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteParagraph POST /api/culture/story/paragraph/delete */
export async function deleteParagraphUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteParagraphUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>(
    "/api/culture/story/paragraph/delete",
    {
      method: "POST",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** getStoryParagraphs GET /api/culture/story/paragraph/list */
export async function getStoryParagraphsUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStoryParagraphsUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListCultureStoryParagraph_>(
    "/api/culture/story/paragraph/list",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** updateParagraph POST /api/culture/story/paragraph/update */
export async function updateParagraphUsingPost(
  body: API.CultureStoryParagraph,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>(
    "/api/culture/story/paragraph/update",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** updateStory POST /api/culture/story/update */
export async function updateStoryUsingPost(
  body: API.CultureStory,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/culture/story/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
